home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir34
/
hack105.zip
/
DISKHACK.DOC
next >
Wrap
Text File
|
1994-08-10
|
17KB
|
296 lines
╒════════════════════════════∞∞∞∞∞∞∞∞══════════════════════════════════╕
│ Another great program from: │
│ │
│ │
│ ┌─┬─────┐ │
│ │ │ │
│ └─┴───┬─┐ ┬┬ ┌┬─┬─┐ ┬┬──┐ ┬┬─ ┬┬──┐ │
│ │ │ ││ ││ │ │ │├──┘ ││ │├─ │
│ └─────┴─┘ ┴┴ ┴┴ ┴ ┴ ┴┴ ┴┴──┘ ┴┴──┘ │
│ ┌───┬─┬───┐ │
│ │ │ │
│ │ │ ┬┬──┐ ┌┬──┐ ┬┬ ┬ ┌┬─┐ ┬ ┬┬ ┌┬──┐ ┬┬ ┬ ┬┬──┐ ┌┬──┐ │
│ │ │ │├─ ││ │├──┤ ││ │ │ ││ ││ │ ││ │ │├─ └┴─┬┐ │
│ ┴─┴ ┴┴──┘ └┴──┘ ┴┴ ┴ ┴┴ └─┘ ┴┴ └┴─┼┘ └┴──┘ ┴┴──┘ └──┴┘ │
│ │
│ │
│ │
╘══════════════════════════════∞∞∞∞∞∞∞∞════════════════════════════════╛
/***************************DISKHACK.EXE**********************************/
Copyright (C) 1994 John Hayes.
REGISTRATION :
To Register Send the appropriate amount in dollars or
Irish punts or Sterling Pound .....(US $30) by international
money order or cash (Banks screw you for changing foreign
cheques), to :-
John Hayes.
38 Shanganagh Grove,
Shankill,
Co. Dublin,
Ireland,
EUROPE.
NOTE :
DISKHACK was tested into the ground on CD-ROM's,Novell Networks
with INTERLNK and on over 30 PC's so if you Do find any 'bugs'
please send me a note as we couldn't, but no software is perfect
so I'm sure someone somewhere must know of some small problem.
(a few limitations maybe but no bugs....fingers crossed).
MAIN MENU :
1. FILES MENU.
Select this option if you wish to edit the contents
of any File or Directory ...all files are editable the
read-only or any special file attributes are removed as
soon as you hit <Enter> to select the highlighted
File or Directory. (All files means files on DOS drives
and Novell Drives and CD-ROM Drives ...However you can't
save changes to files on a CD-ROM Drive...needless to say).
For Details of how to edit files and Directory's see...
"EDITING KEYS :" (below).
2. CALCULATOR.
The calculator can take input in 3 modes numbers typed in in
HEXADECIMAL(BASE 16),DECIMAL(BASE 10) and OCT(BASE 8)
and results are displayed in 4 modes base 16,base 10,base 8 and
(binary) BASE 2. To change the input mode use either TAB or the
Arrow keys. Numbers entered may only be whole numbers no decimal
point is accepted and results will always be whole numbers even
with division you will only see the result and the Equation line
will display (<result> REMAINDER <remainder>) ,four operations
are accepted +,-,*,/ plus,minus,multiplyed by and division
When you initially enter a number either press enter or press
an operation if you press enter you will be asked for an operation
when you enter an operation the 'equation line' (which is always
displayed in base 10 no matter what the input mode)will display the
equation so far i.e. "24 +" you then enter another number say 12
and press enter,an operation(i.e. *) or "=" pressing "=" causes a
result to be displayed and you must start a new equation all over
again, pressing enter or an operation allows you to continue using
the result for further compilation.
F5 at anytime restarts the calculator fresh.
ESC at anytime returns you to the main menu.
3. SEARCH FOR FILE.
this option allows you to find a file(s) on the current drive
you may enter the whole file name i.e. CONFIG.SYS or use wild
card character such as ? and *
if you enter the search pattern ?ONFIG.SYS all files
beginning with any character and ending with ONFIG.SYS will be
located including hidden and system files. i.e
RONFIG.SYS CONFIG.SYS AND XONFIG.SYS would all be found
use of the * wild card character replaces may characters
i.e using the search pattern CON*.*
will locate all of the following files CONFIG.SYS CONTINUE
CON.1 AND CON.MAN
ESC at any stage ends the search.
4 CHANGE DRIVE.
When you select this option all available Drives are displayed
the current Drive is Highlighted use the arrow keys
to select a new drive and press <Enter> to change to the new
Drive or Press the appropriate key i.e. 'A' key for the A: drive.
ESC key exits change drive back to the main menu without changing
the current drive.
5 CHANGE DIRECTORY.
This option allows you to change the current working Directory
the available keys in this option are page up and down and the
four arrow keys when you highlight the directory you want just press
<Enter> and you are returned to the main menu if you then choose the
Files menu you may edit any of the files in the current directory
or the Sub-directories(sub directory names are in capitals).
ESC key returns you to the main menu without changing the current
Directory.
Change Directory has two major steps building the tree
and then displaying it and allowing you to move around the tree
selecting a new directory. Notably on large novell drives
the 'building tree' part can take up to 1 minute the tree
is actually written to a file in the Root directory of the
C: drive i.e. if changing directory on the F: a file c:\treef.tmp
will be created, B: drive c:\treeb.tmp ,when you exit DISKHACK
these files are usually deleted which can be a waste but by the
next time diskhack is run there may be new sub-directories
so it is necessary, to save time if you use DISKHACK often
create a file called NODELETE.TXT if this file is present in the
same directory as DISKHACK.EXE resides the C:\tree*.tmp
files will not be deleted (note files c:\tempa.tmp and c:\tempb.tmp
are always deleted as these are assumed to be floppy drives and
directory structure is more likely to change for each new floppy
inserted).
6. EDIT SECTOR.
Within this option there is a further menu with 3 option.
6.1 Edit Sector
6.2 Edit Cluster
6.3 Absolute Sector
6.1 and 6.2
MSDOS and PCDOS divides a disk into sectors each one usually 512
bytes long. A hard disk is made up of sides(heads),cylinders
and Sectors DOS doesn't bother the User with finding out which
Head(s),cylinder(S) and Sector(s) a file is stored on it just
numbers Sectors Sequentially i.e. 1 to 1000. On a Hard disk side 0
cylinder 0 and sector 1 contains a special table called a
partition table you may only have one hard disk in a machine
but you may find you still have a C: and D: and even a E: drive
all these drives may be stored on the one physical hard disk but
logical the are separate drives. The partition table stores where
each partition on the hard disk start and ends, The DOS
utility FDISK usually creates this for you and decides which
drive you will bootup from. Say we now have 3 partitions on our hard
disk C: D: E: each DOS drive, in the first sector of the partition
sector 0 (called the boot Sector) is a table of data which
tells us where the rest of the DOS structures are located .i.e.
a typical DOS partition :-
sector
0 Boot Partition
1-20 File allocation table (FAT 1)
21-40 File allocation table (FAT 2) exact copy of FAT 1.
41-55 Root DIrectory
56-99998 Data Area (where files are stored and sub-directories)
The Boot Sector will tell us where the rest of the DOS elements
are and if it also tells us if this is a DOS partition it may be
a XENIX or some other operating system's partition and it also tells
if the drive is bootable.
The Fat table on a hard disk is usually a 16 bit FAT i.e. 2 bytes
are used per cluster ( a cluster is group of sequentially numbered
sectors cluster numbers start at 2) each file on a dos disk has
a directory entry in this entry is stored the starting cluster
of the file in the DOS partition if a file is larger than one
cluster in size dos uses the FAT table to tell were the next cluster
in the file is stored ,floppy work in the same way but floppies only
have 2 sides and each entry in the FAT table only uses up 1.5 bytes.
The Root directory contains an entry for each file and sub directory
in the root the structure can be seen by going into the 'FILES MENU'
selecting a directory either . or .. or a file whose name is
displayed in uppercase and press <Enter> the file is initial
displayed in hex mode press F4 and the sector is mapped as in
directory structure format.
6.3 ABSOLUTE SECTOR
You may bypass dos's disk structure and access the sectors on the
disk by head,cylinder and sector ....head 0,cylinder 0,
sector 1 is the first sector on the disk and head 15,cylinder 700
sector 9 might be the last sector. Diskhack will only allow
hard disk's (not floppies) to be accessed in this way but floppies
still have two sides(heads) cylinders and sectors. DISKHACK
will only recognise at max. 2 physical hard disks per machine.
(not partitions but physical disks in a machine).
EDITING KEYS:
You may end up at the Edit screen via the files menu,the or any
of the sector edit facilities(EDIT SECTOR,EDIT CLUSTER,
ABSOLUTE SECTOR). The initial screen you see has two sizes
one shows the contents of the current sector or current 512 bytes of
a file being edited in hexadecimal the other size shows the
ASCII symbols for each hex value you may edit in either mode
just press the TAB key to change modes the arrow keys allow
you to move about to the bytes you wish to edit and then overtype
with the new value after you have made changes you may press F8
to save the changes or press page down or page up if any data
has be altered you will be prompted to 'save changes' type 'Y'
or 'N' as you wish.
FUNCTION KEY ASSIGNMENTS.
this is where difference occur depend on which menu you originally
came from if you came from the files menu :-
WHEN EDITING A FILE :
F1 - shows you a quick guide to F key assignments.
F2 - well this is the usuall screen edit in hex mode
F3 - if you press this key the screen changes to display
the files ASCII codes as they would be interpreted if
displayed on a screen i.e carriage returns and tab characters
or not shown they just cause the a line feed or an indentation
etc. You mat not chance any Data on this screen press F2 or
F4 or ESC to continue pageup and down are also available.
F4 - This key invokes the search facility you can search for
text i.e. type in 'john' and press enter if the file contains
the words 'john' in either upper or lowercase or a mixture it
will be found. You may also search for hex values i.e
carriage return hex values 10 and 13 press F4 hold down the
ALT key on the numeric keypad (make sure numlock is ON)
press 1 and then 0 then release the ALT key and do the
same for 13 press enter and the values if they exist will be
found and highlighted.
F5 - if you do a search and the text is found you can try to
find it again buy pressing F5.
F6 - Display ascii codes (not always available).
F8 - Save changes
FUNCTION KEY ASSIGNMENTS.
WHEN EDITING A DIRECTORY OR SECTOR OR CLUSTER.
F1 - help gives a short list of key assignments
F2 - as before edit in hex or text mode.
F3 - as before 'view only' not data changes ...view in text mode.
F4 - EDit as a directory if we are editing a directory or
a sector which may be part of a directory we may wish
to see what the hex values actually mean to DOS.
Edit as directory allows you to change the files names
size creation date or time(time can only be stored to the
closest 2 seconds a DOS limitation) or change a files
attributes just toggle the attributes with the <ENTER> key.
F5 - map as FAT allows editing of the FILE ALLOCATION TABLE
in the same format as DOS view the FAT table.
F6 - Edit as DISK PARTITION TABLE shows the way cylinder
0,head 0 sector 1 of a hard disk is interpreted by dos
you may change the bootup drive by using the arrow keys
and the <enter> key.(only available from edit as hex screen).
F7 - shows how the boot sector (sector 0) of a logical DOS
partition is interpreted by DOS use also to map out
sector 0 on a floppy disk. You may only view values using
the map not edit.(only available from edit as hex screen - F2).
F8 - Save changes.
F9 - Display ascii codes (not always available).
NOTES ON EDITING A DIRECTORY :
You may map out a sector to show you the way MS-DOS sees the
sector if the sector is part of a directory by pressing F4. You
may editing all fields you must overtype the value of the
currently highlighted field and press <enter> to accept the changes.
To change the attributes of a file or directory you toggle the
attribute by hitting <enter> i.e. a system file or not a system file,
or a hidden file etc. Use the arrow keys to select the field you wish
to edit. All filenames and directory names should be typed in upper
case but for you're own reason you may want to rename the directory
with lower case names (for security - msdos can't access lowercase
named directories ). When finished editing you may press F8 to
save or press page down you will be prompted to 'save changes y/n'
Y saves changes needless to say and as long as you're not mental
impaired I'm sure you can figure out what 'N' does.
NOTES ON EDITING THE FAT (File Allocation Tables).
You may edit both 12 bit and 16 bit FAT types when editing a
sector of a FAT press F5 and the Fat will be mapped out as
MS-DOS views it each cluster can be editing position the
cursor at the cluster entry you wish to change and enter a
number a dialogue box will appear and enter the new value
press enter and the old value is updated. Press F8 to save the
changes.
MOUSE SUPPORT:
Diskhack the unregistered version offer limited mouse support
only when running WINDOWS AND MOUSE.COM is loaded the control
keys are
left button = <Enter> Key (menu option select)
Right button = ESC Key (escape)...i.e. (return to last menu)
NOTE :
Any queries bugs or comments-enhancements you would like to
see send me a note either by net mail or by post to the address
contained in diskhack.
Note that most dates mentioned in DISKHACK.EXE are in the European
format as this has caused some of our American friends a few
problems.
DISKHACK contains code to provent tampering and from alteration
by Viruses, this may slow start up slightly but the benefits to
the user should outway the inconvience.